package com.boliq.lol.ui.news;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.boliq.lol.R;
import com.boliq.lol.adapter.NewsChessAdapter1;
import com.boliq.lol.base.BaseFragment;
import com.boliq.lol.bean.NewsChessBean1;

public class NewsChessFragment1 extends BaseFragment {
    private RecyclerView mRecyclerView;
    private NewsChessAdapter1 c1Adapter;
    @Override
    protected int rootLayout() {
        return R.layout.chess_mian_view;
    }
    @Override
    protected void initView(View view) {
        mRecyclerView = view.findViewById(R.id.rv_content_list2);
    }
    @Override
    protected void initData(){
        NewsChessBean1 c11=new NewsChessBean1(R.drawable.chess2,"【天神裁决天使】4天使4裁决2宗师",R.drawable.chess1,"虎牙King亚索");
        c1Adapter = new NewsChessAdapter1();
        c1Adapter.addData(c11);

    }

    @Override
    protected void bindEvent() {

    }
    @Override
    protected void bindData() {
        super.bindData();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        mRecyclerView.setAdapter(c1Adapter);

    }
}
